package com.gcstorage.tvdev.util;

import com.lzy.okgo.OkGo;
import com.lzy.okgo.callback.Callback;

import java.io.File;

/**
 * 网络请求封装
 * Created by zjs on 2018/3/16.
 */

public class HttpUtils {

    /**
     * 文件下载
     *
     * @param url
     * @param tag
     * @param callback
     */
    public static void downloadFile(String url, Object tag, Callback<File> callback) {
        OkGo.<File>get(url).tag(tag).execute(callback);
    }

}
